﻿Imports System.Linq
Imports Equipment.Core
Imports Equipment.DataAccess

Public Class RoleManager
    Public Shared Function GetAllFor(ByVal forUser As IUserInfo) As IEnumerable(Of Role)
        If forUser.IsSuperUser Then
            Return Role.RetrieveAll()
        Else
            Return Role.RetrieveAllBySiteID(forUser.SiteID)
        End If
    End Function
End Class
